package com.hzcx.app.simplechat.ui.home.presenter;

import android.content.Context;

import com.hzcx.app.simplechat.api.BaseDialogObserver;
import com.hzcx.app.simplechat.base.BaseEmptyBean;
import com.hzcx.app.simplechat.base.BasePresenter;
import com.hzcx.app.simplechat.model.FriendModel;
import com.hzcx.app.simplechat.model.PublicModel;
import com.hzcx.app.simplechat.model.UserModel;
import com.hzcx.app.simplechat.ui.home.contract.AddFriendContract;
import com.hzcx.app.simplechat.ui.home.contract.AddFriendFirstContract;
import com.hzcx.app.simplechat.ui.publicui.bean.ShareMineInfoBean;
import com.hzcx.app.simplechat.ui.user.bean.UserInfoBean;

public class AddFriendFirstPresenter extends BasePresenter<AddFriendFirstContract.View> implements AddFriendFirstContract.Presenter {


    /**
     *  邀请好友分享
     * @param context
     */
    @Override
    public void getShareMineInfo(Context context) {
        PublicModel.getShareMineInfo(context, new BaseDialogObserver<ShareMineInfoBean>(context) {
            @Override
            protected void onSuccess(ShareMineInfoBean data) {
                mView.shareResult(data);
            }
        });
    }
}
